package com.aiti.lulian.mapper.gxmh;

import com.aiti.lulian.gxmh.dto.GxmhEnterpriseSearchParamDto;
import com.aiti.lulian.gxmh.dto.GxmhEnterpriseSearchResultDto;
import com.aiti.lulian.gxmh.dto.GxmhToCardInfoDto;
import com.aiti.lulian.gxmh.vo.GxmhEnterpriseSearchResultVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GxmhEnterpriseMapper {

    List<GxmhEnterpriseSearchResultDto> queryEnterpriseInfo(IPage<GxmhEnterpriseSearchResultDto> page, @Param("dto")GxmhEnterpriseSearchParamDto dto);

    String queryEnterpriseIdByUserId(@Param("userId") String userId);

    Integer queryMiniProgramVersion(@Param("enterpriseId") String enterpriseId);

    String queryEnterpriseIdByCreditCode(@Param("creditCode") String creditCode);

    List<GxmhToCardInfoDto> queryEnterpriseInfoByCreditCode(@Param("entepriseIdList") List<String> entepriseIdList);

    List<GxmhEnterpriseSearchResultVo> queryIndexEnterpriseInfo(@Param(value = "enterpriseType") Integer enterpriseType);
}
